package com.start.cms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.start.cms.model.CmsModel;
import com.start.common.entity.StartBaseEntity;
import com.start.common.mybaitsplus.StartMyBaitsEntityHandler;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

@Data
 @Schema(name="StartCmsDataModelEntity", description = "cms 模型")
@TableName(value = "start_cms_diy_model", autoResultMap = true)
public class StartCmsDiyModelEntity extends StartBaseEntity {
     @Schema(name="模型名称")
    private String diyModelTitle;
     @Schema(name="模型编码")
    private String diyModelCode;
     @Schema(name="模型类型")
    private String diyModelCategory;
     @Schema(name="是否允许远程提交")
    private boolean diyModelIsAllowH5Submit;
    @TableField(typeHandler = StartMyBaitsEntityHandler.class)
    private CmsModel diyModelConfig;
}
